package com.orhonit.ipb.portal.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.orhonit.ipb.portal.entity.GropToDept;
import com.orhonit.ipb.security.common.mapper.CommonMapper;

/**
 * 
 * 
 * @author 
 * @email 
 * @version 2018-05-21 08:55:47
 */
public interface GropToDeptMapper extends CommonMapper<GropToDept> {
	@Select("SELECT "+
			" a.place_party_branch deptId "+
			" FROM "+
			" tb_party_member_base_info a"+
			" WHERE"+
			" a.user_id = #{id}")
	List<String> getDeptList(String id);
	/**
	 * 通过userid
	 * @param userId
	 * @return
	 */
	GropToDept getdeptId(String userId);
}
